unity3d if getkey any key code example Example: unity detect any key if (Input.anyKey) { // Code here }