RosettaCodeData/Task/Keyboard-input-Keypress-check/FreeBASIC/keyboard-input-keypress-check.basic

15 lines
205 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
' FB 1.05.0 Win64
Dim k As String
Do
k = Inkey
Loop Until k <> ""
If Len(k) = 1 Then
Print "The key pressed was "; k; " (ascii "; Asc(k); ")"
Else
Print "An extended key was pressed"
End If
Sleep