According to one embodiment, an electronic apparatus includes: a keyboard
provided with a plurality of keys and a plurality of LEDs arranged around
each of the keys; a storage unit configured to store information
indicating relationship between the keys and corresponding LEDs; a
detecting unit configured to detect a key input at one of the plurality
of keys; and an LED controlling unit configured to light at least one of
the LEDs corresponding to the one of the keys based on the information
when the detecting unit detects the key input.