Add keyboard events handling