Detected keydown and keyup successfully

Fixed an earlier issue with this not working