How to Hide the "API Keys" Admin Menu

function plt_hide_rest_api_key_authentication_menus() {
	//Hide the "API Keys" menu.
	remove_menu_page('wp-api-key-auth');
}

add_action('admin_menu', 'plt_hide_rest_api_key_authentication_menus', 11);

Where do I put this code?