Hooked up key down event functionality