for two months that saw him omitted from the club's 25-man squad for the Premier League season by new Palace manager Neil Warnock. Lacking match fitness on his return, Warnock made O'Keefe available for a loan move in order to gain playing time and, following a potential loan move to Championship club Charlton Athletic collapsing after they decided to sign Francis Coquelin on loan from Arsenal instead, Warnock stated that he could not "understand how nobody has come in for him". On 27 November 2014, O'Keefe eventually secured a loan move away from Palace on the final day of the emergency loan window, joining struggling Championship club Blackpool on loan until 1 January 2015, along with Wolverhampton Wanderers defender Kevin Foley. He made his debut on 29 November 2014, starting in a 1–1 draw with Rotherham United, being replaced by Nathan Delfouneso after 56 minutes, and went on to make four appearances for the team before returning to Palace. On his return to Selhurst Park, O'Keefe found himself under a new manager for the fourth time since August 2014, following the appointment of Alan Pardew. Despite being handed a starting spot in Pardew's first match in charge at the club, a 4–0 win over non-League team Dover Athletic in the third round of the FA Cup on 4 January 2015, he was later informed that he was not part of the manager's new plans at the club. Cardiff City On 28 January 2015, O'Keefe signed for Championship club Cardiff City, who beat off competition from Millwall, for an undisclosed fee on a two-and-a-half-year contract, joining former Palace teammates Danny Gabbidon and Kagisho Dikgacoi at the Cardiff City Stadium. He made his debut against Derby County, having trained with the team for just two days following the completion of his transfer, in a 2–0 loss. He featured in the following two matches but, with heavy competition from Peter Whittingham, Joe Ralls and Aron Gunnarsson, he did not appear for the first team again until 11 April and made a total of just six appearances during the second half of the season for Cardiff. The start of the following season continued the same trend for O'Keefe as he made just eight appearances during the first five months of the season before returning to the starting line up against Wolverhampton Wanderers on 16 January 2016, in a match that Cardiff went on to