Switch to keyboard handling

Signed-off-by: Igor Yeryomin <yeryomin.igor@gmail.com>