Added more keyboard handling.

Fixed undefined module error.