Added keyboard handler to controls module