Added key callback stuff in DefaultInput.