Report question

Question: How to detect if the pressed key will produce a character inside an <input> text-box?