Add sudo to get key functions