added keyboard state to items