There is a single player AI for both play modes but the AI is not the best at times.
Also I wouldn’t really recommend four players play on a single keyboard. Controllers are definitely recommended. The keys are given below if you would like to try it. It is possible to play with a combination of keyboard and controllers.