Added keyboard polling feature.