Removed printf from pressed/released function; introduced a global variable to store currently pressed key
removed wrongly declared global variable from header