Fix fullscreen and keyboard events

Signed-off-by: Kirill Enykeev <enykeev@gmail.com>