Keydown event handling changes

Keydown event should not be handled if the data-toggle="dropdown"
attribute is not present.
Revert "Keydown event handling changes"

This reverts commit 921281fc3bfd1a9fdf63e6630d0d4f6db95924e5.
Revert "Revert "Keydown event handling changes""

This reverts commit 37af80a8f2991f4a590b91a26f79445ff67743c9.