keybord recognition apple

trying to install ubuntu on my new mac mini but during install doesnt find my wireless mouse and keybord...... so no input user name and or pasword? What to do?