Read hex from keypress