Added keyboard thread.