key catch in consoleinput for history implementation