Report question

Question: What's the simplest way of detecting keyboard input in a script from the terminal?