Please use [php] tags for longer codes to avoid unnecessary scrolling.
About it only using case 1:
Code:
public Pressedrod(id, key, menu, item)
The body of a menu handler function is (id, menu, item). There is no "key", so in your case "key" is the menu id which is always 1. Use "item" in the switch cases.