isDown() function

function takes an integer input that is the value of the key code for desired key and returns if key is down