unity get any key pressed which key code example Example: unity detect any key if (Input.anyKey) { // Code here }