emit key-pressed signal with view; add key_pressed_return_value flag
reimplement input pattern matching