Added keyboard support. Fixed #3.