Shortest Konami Code The Problem
You must write a program that, when the Konami Code is typed in during runtime, prints the string &quot;+30 lives&quot; and sounds a noise of your choice from the computer's speaker.
Definition
The &quot;Konami Code&quot; is defined as UUDDLRLRBA followed by pressing the enter key.
The Rules

You may choose to use the up arrow for U, down for D, left for L, and right for R, as long as your code is consistent with either arrows or letters.

Your input may be accepted from a controller or a keyboard, but does not need to support both.

Existing answers may continue to use BABA instead of BA, but may also shorten it if they wish to do so. Future answers should all use BA for consistency.

Empty input doesn't need to be supported.
05AB1E, 33 bytes (Fine on Empty Input)

Dg0Qiq}•ï“ë™µyê!•36BQi7ç“+30™‹“J,


Try it online!

05AB1E, 30 26 bytes (Fails on Empty Input)

-4 thanks to Adnan

•ï“ë™µyê!•36BQi7ç,“+30™‹“,


Try it online!

•ï“ë™µyê!•36B                  # UUDDLRLRBABA in base-214, converted back to base-36.
             Qi                # If implicit input is equal to...
               7ç,             # Print 7 converted to a character to the console (bell sound)...
                  “+30™‹“, # Print +30 lives.


Disclaimer: Bell sound does not play on TryItOnline, maybe ask Dennis if one of his servers somewhere is pinging when you run it.