Thanks for the suggestion.
Implemented for the next release: https://feedback.objo.dev/feature/1036
ListBox now provides both keyboard events:
KeyDown(keyName As String) As Boolean
KeyUp(keyName As String)
KeyDown is cancellable. Return True when your code has handled the key, or False to allow normal ListBox navigation and editable-cell input.
For example, deleting the selected row:
# KeyDown
If keyName = Key.Delete And ListBox1.SelectedRowIndex >= 0 Then
ListBox1.RemoveRow(ListBox1.SelectedRowIndex)
Return True
End If
Return False