getkey unity right and left key code example
Example 1: right click of mouse and block F12 key
Source: https://www.programmingquest.com/2018/08/prevent-right-click-of-mouse-and-block.html
For preventing Right click Context menu:
$(document).on("contextmenu", function (e) {
e.preventDefault();
});
For preventing 'F12' and 'Ctrl+Shift+I' button click:
$(document).keydown(function (event) {
if (event.keyCode == 123)
{
return false;
}
else if(event.ctrlKey && event.shiftKey && event.keyCode == 73)
{
return false;
}
});
Example 2: unity up arrow input
Input.GetKeyDown("up")
Example 3: unity getkey keycode
Input.GetKey(KeyCode.Space))
Example 4: left shift in java
int a=a<<n;