removed unnecessary freeplay mode check from keyup event