Added the ability to use keyboard up/down keys