Since you will be using LINPUT, a button to send the command is already established. You will have to use the A button or the ENTER key. There is no button to close the console, though. This means you will have to write a command to explicitly close the console. This is simple enough to code, though. I will write you a simple code in the next comment.