Read an array of bytes from the keyboard

http://ideone.com/l0HFKH